<?php $this->load->view("_inc/header_login"); ?>
<script>
    $(document).ready(function(){
        $("#login").validate();
    });
    
    $(document).ready(function(){
        $("#registro").validate();
    });
</script>

<div id="login">
	<div id="titulo"><span>Login</span></div>
	<div class="border_full"></div>
	<div id="formulario">
	<?=form_open('usuario/logar', 'id="login"');?>
		<table>
    	<tr>
    		<td><label>Email:</label></td>
    		<td><?=form_input('email', '', 'class = "required email"');?></td>
    	</tr>
    	<tr>
    		<td><label>Senha:</label></td>
    		<td><?=form_password('senha', '', 'class="required" minlength="7"');?></td>
    	</tr>
    	
    	<tr><td><?=form_submit('', 'Entrar');?></td></tr>
    	</table>
	<?=form_close()?>
	</div>
        <a href="<?php echo $url; ?>"><img src='<?=base_url()?>public/img/lfacebook.png' /></a>
</div>

<div id="cadastro">
	<div id="titulo"><span>Cadastro</span></div>
	<div class="border_full"></div>
	
	<div id="formulario">
	<?=form_open('usuario/registrar', 'id="registro"');?>
    	<table>
    	<tr>
    		<td><label>Nome:</label></td>
    		<td><?=form_input('nome', '', 'class="required" minlength="10"');?></td>
    	</tr>
    	<tr>
    		<td><label>Email:</label></td>
    		<td><?=form_input('cemail', '', 'class = "required email"');?></td>
    	</tr>
    	<tr>
    		<td><label>Senha:</label></td>
    		<td><?=form_password('csenha', '', 'class="required" minlength="7"');?></td>
    	</tr>
    	<tr>
    		<td><label>Time do Coração:</label></td>
    		<td><?=form_dropdown('time', $times, '', 'class="required"');?></td>
    	</tr>
    	<tr><td><?=form_submit('', 'Registrar');?></td></tr>
    	</table>
	<?=form_close()?>
	</div>
</div>

<?php $this->load->view("_inc/footer"); ?>